package cn.lzwei.bilimall.ware.dao;

import cn.lzwei.bilimall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品库存
 * 
 * @author lizewei
 * @email Lizewei2105@163.com
 * @date 2022-12-22 10:30:40
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    //完成采购单，商品存在库存记录时更新库存
    void updateSkuStock(@Param(value = "skuId") Long skuId,@Param(value = "wareId") Long wareId,@Param(value = "skuNum") Integer skuNum);
}
